package study.JavaBase;

/**
 * date:2025.11.4
 * author:fzt
 * title:object类
 */
//object是类层次结构的根，每个类都以object为超类，每个类都直接或者间接继承object类
public class Java_28 {
    public static void main(String[] arg){
        TestClass_1 testClass1  = new TestClass_1();
        TestClass_1 testClass2  = new TestClass_1();
        System.out.println(testClass1);
        //比较地址的
        System.out.println(testClass1.equals(testClass2));

    }
}
class TestClass_1{

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}